package com.jintoufs.domain.constants;

/**
 * 常量类，用于存放一些常量的声明定义
 *
 * @author fuhuo.zhang Date:2015-03-17
 */
public class Constants {

    /**
     * 精确到秒的时间格式
     */
    public static final String TIME_SECOND_FORMAT = "yyyyMMddHHmmss";

    /**
     * 精确到天的时间格式
     */
    public static final String TIME_DAY_FORMAT = "yyyyMMdd";

    /**
     * 强制退出
     */
    public static final String SESSION_FORCE_LOGOUT_KEY = "session.force.logout";
    /**
     * 当前登陆的用户
     */
    public static final String CURRENT_USER = "user";
    public static final Byte USER_PASSWORD_NOT_MODIFY = 0;
    public static final Byte USER_PASSWORD_MODIFIED = 1;
    public static final Byte LOG_TYPE_0 = 0;//类型 :0-前置通知；1-异常通知
    public static final Byte LOG_TYPE_1 = 1;//类型 :0-前置通知；1-异常通知
    public static final String CUSTOMER_PHOTO_DIR = "/customerPhotoDir";
    public static final String USER_PHOTO_DIR = "/userPhotoDir";

    /**
     * 请求消息类型：事件
     */
    public static final String REQ_MESSAGE_TYPE_EVENT = "event";
    /**
     * 事件类型：subscribe(关注)
     */
    public static final String EVENT_TYPE_SUBSCRIBE = "subscribe";

    /**
     * 事件类型：unsubscribe(取消关注)
     */
    public static final String EVENT_TYPE_UNSUBSCRIBE = "unsubscribe";

    // 网站可用性
    public static final String SITE_STATUS_0 = "0";
    public static final String SITE_COINS_STATUS_DISABLE = "00";
    public static final String  SITE_COIN_STATUS_ENABLE = "01";

    public static final String SITE_STATUS_1 = "1";

    //0:单个查询，1：批量查询，2：全部查询
    public static final String PRICE_API_TYPE_SINGLE = "0";
    public static final String PRICE_API_TYPE_MULTI = "1";
    public static final String PRICE_API_TYPE_ALL = "2";

    //取数据间隔时间
    public static final int TICKER_BEFORE_MIN =10 ;

    public static String UNIT_CODE_TYPE_1="1";
    public static String UNIT_CODE_TYPE_0="0";//1:带有计价单位，0：不带计价单位
    public static String METHOD_TYPE_POST="POST";
    public static String METHOD_TYPE_GET="GET";

    //交易状态：0，未成交，1已成交，2已取消
    public static final String  TRADE_STATUS_NEW= "00";
    public static final String TRADE_STATUS_OK = "01";
    public static final String  TRADE_STATUS_CANCEL= "02";




}
